extends Node2D


func _ready():
	$AnimationPlayer.play("end")
#	var file = File.new()
#	if file.file_exists("user://data.json"):
#		file.open("user://data.json",File.READ)
#		Global.data = parse_json(file.get_as_text())
#		if Global.data["unlock_endcg_small"]:
#			$HBoxContainer/small.disabled = false
#		elif Global.data["unlock_endcg_c"]:
#			$HBoxContainer/c.disabled = false
#		elif Global.data["unlock_endcg_b"]:
#			$HBoxContainer/b.disabled = false
#		elif Global.data["unloack_endcg_s"]:
#			$HBoxContainer.s.disabled = false
	pass

func _process(delta):
	if $CanvasLayer/up.pressed:
		$Camera2D.translate(Vector2(0,-2))
	elif $CanvasLayer/down.pressed:
		$Camera2D.translate(Vector2(0,2))
	elif $CanvasLayer/left.pressed:
		$Camera2D.translate(Vector2(-2,0))
	elif $CanvasLayer/right.pressed:
		$Camera2D.translate(Vector2(2,0))
	pass
func _on_small_pressed():
#	$GtsShow.scale = Vector2(1,1)
	#$GtsShow.position = Vector2(0,0)
	pass # Replace with function body.


func _on_c_pressed():
#	$GtsShow.scale = Vector2(10,10)
#	$GtsShow.position = Vector2(-2566,-373)
#	$CanvasLayer.show()
	pass # Replace with function body.


func _on_b_pressed():
#	$GtsShow.scale = Vector2(100,100)
#	$CanvasLayer.show()
	pass # Replace with function body.


func _on_s_pressed():
#	$GtsShow.scale = Vector2(1000,1000)
#	$CanvasLayer.show()
	pass # Replace with function body.


func _on_Button_pressed():
	get_tree().change_scene("res://scene/Main.tscn")
	pass # Replace with function body.

func _show_final():
	$Label.show()
	$Button.show()
	$GtsShow.show()
